//
//  DYThemeVoiceView.m
//  BaiSi
//
//  Created by mac on 16/11/2.
//  Copyright © 2016年 DeYi. All rights reserved.
//

#import "DYThemeVoiceView.h"
#import "DYThemeItem.h"
#import <UIImageView+WebCache.h>

@interface DYThemeVoiceView ()
@property (weak, nonatomic) IBOutlet UIImageView *voiceView;
@property (weak, nonatomic) IBOutlet UILabel *playLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UIButton *playButton;

@end

@implementation DYThemeVoiceView

- (void)setItem:(DYThemeItem *)item {
    [super setItem:item];
    [_voiceView sd_setImageWithURL:[NSURL URLWithString:item.image0]];
    _playLabel.text = [NSString stringWithFormat:@"%ld播放",item.playcount];
    _timeLabel.text = [NSString stringWithFormat:@"%02ld:%02ld",item.voicetime / 60 ,item.voicetime % 60];
    
    
}

@end
